package com.net.all.testing;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.StringTokenizer;

public class CountTest {

	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		
		String num = in.nextLine();
		System.out.println(num);

		Map<Integer, Integer> map = new HashMap<Integer, Integer>();
		
		int i = 1;
		for(String s : num.split("1"))
		{
			System.out.println(s);
			
			int len = s.length();
			
			map.put(i, len);
			
			i++;
			
		 }
		
		for(Map.Entry<Integer, Integer> number : map.entrySet())
		{
			System.out.println(number.getKey() + "   " + number.getValue());
			
		}
		
		
	}

}
